ns16550: Simplify UART and UART-interrupt probing logic.
authorKeir Fraser <keir@xen.org>
Fri, 2 Sep 2011 13:56:26 +0000 (14:56 +0100)
committerKeir Fraser <keir@xen.org>
Fri, 2 Sep 2011 13:56:26 +0000 (14:56 +0100)
commit9d032eca4aaab2959c4dd443c9238f5875900ec0
treefade893bf52a69bc7d37a1ed05f5c329b5ff21d2
parent8a36a4acd1643da82cea5cc784eafbff8ac06f62
ns16550: Simplify UART and UART-interrupt probing logic.

1. No need to check for UART existence in the polling routine. We
already check for UART existence during boot-time initialisation (see
check_existence() function).

2. No obvious need to send a dummy character. The poll routine will
run until a character is eventually sent, but for the most common use
of serial ports (console logging) that will happen almost immediately.

Signed-off-by: Keir Fraser <keir@xen.org>
xen/drivers/char/ns16550.c